

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>销售列表</title>
                <calendar:resources lang="en" theme="tiger"/>
        <style type="text/css">
        .searchbar {
            margin-top:10px;
            background-color:lightgrey;
            border:1px solid darkgrey;
            width:100%;
            height:30px;
            padding:5px;
        }
        .search {
            float :right;
            color:white;
        }
        </style>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create">新的进货</g:link></span>
        </div>
        <div class="body">
            <h1>销售列表</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="searchbar">
                <div class="search">
                    <g:form action="listSearch">
                        <calendar:datePicker name="searchDate" defaultValue="${new Date()}"/>
                        <input class="save" type="submit" value="搜索" />
                    </g:form>
                </div>
            </div>
            <br>
            <div class="list">
                                <table>
                    <thead>
                        <tr>

                   	        <g:sortableColumn property="id" title="Id" />

                   	        <g:sortableColumn property="productName" title="产品名称" />

                   	        <g:sortableColumn property="amount" title="数量" />

                   	        <th>分类</th>

                            <g:sortableColumn property="outPrice" title="零售价" />

                   	        <g:sortableColumn property="modelNo" title="型号" />

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${exportProductInstanceList}" status="i" var="exportProductInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                            <td><g:link action="show" id="${exportProductInstance.id}">${fieldValue(bean:exportProductInstance, field:'id')}</g:link></td>

                            <td>${fieldValue(bean:exportProductInstance, field:'productName')}</td>

                            <td>${fieldValue(bean:exportProductInstance, field:'amount')}</td>

                            <td>${fieldValue(bean:exportProductInstance, field:'catalog')}</td>

                            <td>${fieldValue(bean:exportProductInstance, field:'outPrice')}</td>

                            <td>${fieldValue(bean:exportProductInstance, field:'modelNo')}</td>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
